using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class SetBusinessSystemUserRequest : OrganizationRequest
	{
		public Guid UserId
		{
			get
			{
				if (base.Parameters.Contains("UserId"))
				{
					return (Guid)base.Parameters["UserId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["UserId"] = value;
			}
		}
		public Guid BusinessId
		{
			get
			{
				if (base.Parameters.Contains("BusinessId"))
				{
					return (Guid)base.Parameters["BusinessId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["BusinessId"] = value;
			}
		}
		public EntityReference ReassignPrincipal
		{
			get
			{
				if (base.Parameters.Contains("ReassignPrincipal"))
				{
					return (EntityReference)base.Parameters["ReassignPrincipal"];
				}
				return null;
			}
			set
			{
				base.Parameters["ReassignPrincipal"] = value;
			}
		}
		public SetBusinessSystemUserRequest()
		{
			base.RequestName = "SetBusinessSystemUser";
			this.UserId = default(Guid);
			this.BusinessId = default(Guid);
			this.ReassignPrincipal = null;
		}
	}
}
